{{template "Public/header.html" .}}
<script language="javascript" src="/public/js/Content/category.js"></script>
<script type="text/javascript">
	$(function() {
		window.top.$('#display_center_id').css('display', 'none');
	});
</script>
<body>
	<div class="subnav">
		<div class="content-menu ib-a blue line-x">
			<a href='/Category/'><em>管理栏目</em></a><span>|</span>
			<a href='javascript:;' class="on"><em>添加栏目</em></a>
		</div>
	</div>
	<form name="myform" id="myform" action="/Category/add/"
		onsubmit="return form_submit()" method="post">
		<div class="pad-10">
			<div class="col-tab">
				<ul class="tabBut cu-li">
					<li id="tab_setting_1" class="on" onclick="SwapTab('setting','on','',6,1);">基本选项</li>
					<li id="tab_setting_2" onclick="SwapTab('setting','on','',6,2);">生成HTML设置</li>
					<li id="tab_setting_3" onclick="SwapTab('setting','on','',6,3);">SEO设置</li>
				</ul>
				<div id="div_setting_1" class="contentList pad-10">

					<table width="100%" class="table_form ">
						<tr>
							<th width="200"><strong>上级栏目：</strong></th>
							<td>
								<select name="pid" id="pid">
									<option value='0'>≡ 作为一级栏目 ≡</option>
									{{.categorys}}
								</select>
							</td>
						</tr>

						<tr>
							<th><strong>栏目名称：</strong></th>
							<td>
								<span id="normal_add">
									<input type="text"
									name="name" id="name" class="input-text" value="">
								</span>
							</td>
						</tr>
						<tr>
							<th><strong>栏目地址：</strong></th>
							<td>
								<span id="normal_add"><input type="text"
									name="url" id="url" class="input-text"
									value="">
								</span>
							</td>
						</tr>
						<tr>
							<th><strong>描述：</strong></th>
							<td><textarea name="desc" id="desc" maxlength="255"
									style="width: 300px; height: 60px;"></textarea></td>
						</tr>
						<tr>
							<th><strong>是否在导航显示：</strong></th>
							<td><input type='radio' name='ismenu' value='1'
								checked> 是&nbsp;&nbsp;&nbsp;&nbsp; <input type='radio'
								name='ismenu' value='0'> 否</td>
						</tr>
					</table>

				</div>
				<div id="div_setting_2" class="contentList pad-10 hidden">
					<table width="100%" class="table_form ">
						<tr>

							<th width="200"><strong>栏目生成Html：</strong></th>
							<td><input type='radio' name='ishtml' value='1'>
								是&nbsp;&nbsp;&nbsp;&nbsp; <input type='radio'
								name='ishtml' value='0' checked> 否</td>
						</tr>
						<tr>

							<th><strong>内容页生成Html：</strong></th>
							<td><input type='radio' name='content_ishtml'
								value='1'> 是&nbsp;&nbsp;&nbsp;&nbsp; <input type='radio'
								name='content_ishtml' value='0' checked> 否</td>
						</tr>
					</table>
				</div>
				<div id="div_setting_3" class="contentList pad-10 hidden">
					<table width="100%" class="table_form ">
						<tr>
							<th width="200"><strong>META Title（栏目标题）</strong><br />针对搜索引擎设置的标题</th>
							<td><input name='meta_title' type='text'
								id='meta_title' value='' size='60' maxlength='60'></td>
						</tr>
						<tr>
							<th><strong>META Keywords（栏目关键词）</strong><br />关键字中间用半角逗号隔开</th>

							<td><textarea name='meta_keywords'
									id='meta_keywords' style="width: 90%; height: 40px"></textarea></td>
						</tr>
						<tr>
							<th><strong>META Description（栏目描述）</strong><br />针对搜索引擎设置的网页描述</th>
							<td><textarea name='meta_desc'
									id='meta_desc' style="width: 90%; height: 50px"></textarea></td>
						</tr>
					</table>
				</div>
				<div class="bk15"></div>
				<input name="dosubmit" type="submit" value="提交" class="button">
			</div>
		</div>
	</form>
</body>
{{template "Public/footer.html" .}}